#!/bin/bash
g++  -c main.cpp -o main.o
g++  -c System.cpp -o System.o
g++  -c CStemCell.cpp -o CStemCell.o 
g++  -c PARStemCell.cpp -o PARStemCell.o

g++  main.o System.o CStemCell.o PARStemCell.o  -o bct.exe

startTime=`date +"%Y-%m-%d %H:%M:%S"`
./bct.exe ../Run/md.in
endTime=`date +"%Y-%m-%d %H:%M:%S"`
st=`date -d  "$startTime" +%s`
et=`date -d  "$endTime" +%s`
sumTime=$(($et-$st))
echo "Total time is : $sumTime second."